package server

import (
	"github.com/gin-gonic/gin"
	"template-generate/service"
)

func Setup() *gin.Engine {
	router := gin.Default()
	v1 := router.Group("/api/dir")
	{
		v1.POST("")
	}
	router.GET("/api/system/list", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"code": 200,
			"data": service.COMMAND_SERVICE.List(),
		})
	})

	return router
}
